import axios from '@/utils/axios'
import moment from "moment";

export function getCoefficientPage(params) {
  return axios({
    url: '/EmpCoefficient/page',
    method: 'get',
    data: params
  })
}

export function getRegionCoefficient(params) {
  return axios({
    url: '/RegionCoefficient/list',
    method: 'post',
    data: params
  })
}

export function getPositionCoefficient(params) {
  return axios({
    url: '/PositionCoefficient/list',
    method: 'post',
    data: params
  })
}

export function updateEmpCoefficient(params) {
  return axios({
    url: '/EmpCoefficient/update',
    method: 'post',
    data: params
  })
}

export function file(params) {
  return axios({
    url: '/EmpCoefficient/file',
    method: 'post',
    data: params
  })
}

export function fileAll(params) {
  return axios({
    url: '/EmpCoefficient/fileAll',
    method: 'post',
    data: params
  })
}

export function copy(params) {
  return axios({
    url: '/EmpCoefficient/copy',
    method: 'post',
    data: params
  })
}

export function getCoefficientPastPage(params) {
  return axios({
    url: '/EmpCoefficient/coefficientPastPage',
    method: 'get',
    data: params
  })
}

export function getCoefficientSearch(params) {
  return axios({
    url: '/EmpCoefficient/search',
    method: 'get',
    data: params
  })
}

export function getCoefficientPastSearch(params) {
  return axios({
    url: '/EmpCoefficient/coefficientPastSearch',
    method: 'get',
    data: params
  })
}


export function changeAll(params) {
  return axios({
    url: '/EmpCoefficient/changeAll',
    method: 'post',
    data: params
  })
}

